
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
 if(!$_FILES["myfile"]["error"]){
     $newname="upload/".time()."_".$_FILES["myfile"]["name"];
     move_uploaded_file($_FILES["myfile"]["tmp_name"],$newname );
//     echo "<a href=\"$newname\"> 下载</a>";
     echo "<img src=\"$newname\"/> ";
 }
?>
    </body>
</html>
